@echo off
SET PATH=%PATH%;C:\jdk1.5.0\bin
cls
del *.class
javac *.java
java MainProgram
del *.class